

namespace ABA
{
    public class SCPacketHandler : PacketHandlerBase
    {
        public override int Id
        {
            get
            {
                return 2;
            }
        }

        public override void Handle(object sender, Packet packet)
        {
            SCProtoPacket packetImpl = (SCProtoPacket)packet;
            if (packetImpl == null)
            {
                return;
            }
            if (packetImpl.PacketType != PacketType.ServerToClient)
            {
                return;
            }
            //ExternalMessage externalMessage = ProtobufUtils.Deserialize<ExternalMessage>(packetImpl.protoBody);
            
            Event.inst.Send<object>((int)E_NET_EVENT.MsgData, packetImpl);
        }
    }    
}

